// pages/article/article.js
const ArticleHttp = require("../../models/AticleHttp")
Page({
  data: {
    articles:[]
  },
  onLoad:async function (options) {
    // var data = await ArticleHttp.getlist()
    // this.setData({articles:data.data.res})
  },
  async onShow(){
    var data = await ArticleHttp.getList()
    // console.log(data)
    this.setData({articles:data.data.res})
  }
})